import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/footers',
    name:'footers',
    component: () => import('../components/footers/footers.vue')
  },
  {
    path: '/footers2',
    name:'footers2',
    component: () => import('../components/footers/footers2.vue')
  },
  {
    path: '/headers',
    name:'headers',
    component: () => import('../components/headers/headers.vue')
  },
  {
    path: '/headers2',
    name:'headers2',
    component: () => import('../components/headers/headers2.vue')
  },
  {
    path: '/headers3',
    name:'headers3',
    component: () => import('../components/headers/headers3.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
